package com.xcw.enums;

import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;

/**
 * @author bhx
 * @Class Test
 * @date 2022/11/8 10:33
 * @Description TODO
 */
public class Test {
    public static void main(String[] args) {
//        Contanst[] s = Contanst.values();
//        List<Contanst> collect = Arrays.stream(s).sorted((o1, o2) -> o1.getIndex() - o2.getIndex()).collect(Collectors.toList());
////        String name = s.getName();
//        int index = 0;
//        System.out.println("================程序开始了======================");
//        for (Contanst name: collect) {
//            System.out.println("======================"+ index++ +"=====================");
//            System.out.println(name.getIndex() + "  " +name.getName());
//            System.out.println("============================");
//            System.out.println(name.toString());
//            System.out.println("============================");
//            System.out.println(name.getInfo());
//            System.out.println("============================");
//            name.print();
//        }
////        System.out.println(name);
        System.out.println(Ins.BASIC_INS.getInsName());
    }
}
